<%@page import="java.util.ArrayList"%>
<%@page import="com.jlrdb.model.TvBroadcast"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/styledform.css">
<script type="text/javascript" src="/script/tv.js"></script>
<title>Update Tv Broadcast</title>
</head>
<body>
	<h2>Update TV Data</h2>
	<%
		TvBroadcast tvBroadcast = (TvBroadcast) request
				.getAttribute("tvBroadcast");
	%>
	<form name="updateTvBroadcastForm" onsubmit="return updateValidation()" action="/TvBroadcastServlet" target="_self">
		<input type="hidden" name="action" value="updateTvBroadcast"> <input type="hidden" name="broadcastId" value="<%=tvBroadcast.getBroadcastId()%>">
		<input type="hidden" name="country" value="<%=tvBroadcast.getCountry()%>">
		<div id="error">
			<font>* marked fields are mandatory.</font>&nbsp;&nbsp;&nbsp;&nbsp;<font id="id1"></font>
		</div>
		<table style="float: left; position: relative; margin-right: auto;">
			<tr>
				<th>Geographic Region:</th>
				<td><%=tvBroadcast.getGeographic_Region()%></td>
			</tr>
			<tr>
				<th>Country:</th>
				<td><%=tvBroadcast.getCountry()%></td>
			</tr>
			<tr>
				<th><font color="red">*</font>DTT Standard:</th>
				<td><select name="dtt_standard">
						<option value="NONE" <%if (tvBroadcast.getDtt_Standard().equals("NONE")) {
				out.println("selected");
			}%>>NONE</option>
						<option value="ATSC" <%if (tvBroadcast.getDtt_Standard().equals("ATSC")) {
				out.println("selected");
			}%>>ATSC</option>
						<option value="DTMB" <%if (tvBroadcast.getDtt_Standard().equals("DTMB")) {
				out.println("selected");
			}%>>DTMB</option>
						<option value="ISDB-T" <%if (tvBroadcast.getDtt_Standard().equals("ISDB-T")) {
				out.println("selected");
			}%>>ISDB-T</option>
						<option value="DVB-T" <%if (tvBroadcast.getDtt_Standard().equals("DVB-T")) {
				out.println("selected");
			}%>>DVB-T</option>
						<option value="DVB-T2" <%if (tvBroadcast.getDtt_Standard().equals("DVB-T2")) {
				out.println("selected");
			}%>>DVB-T2</option>
						<option value="Not Known" <%if (tvBroadcast.getDtt_Standard().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
				</select>
				<td>
			</tr>
			<tr>
				<th><font color="red">*</font>DTT Status:</th>
				<td><select name="dtt_status">
						<option value="Undecided" <%if (tvBroadcast.getDtt_Status().equals("Undecided")) {
				out.println("selected");
			}%>>Undecided</option>
						<option value="Adopted" <%if (tvBroadcast.getDtt_Status().equals("Adopted")) {
				out.println("selected");
			}%>>Adopted</option>
						<option value="Trial" <%if (tvBroadcast.getDtt_Status().equals("Trial")) {
				out.println("selected");
			}%>>Trial</option>
						<option value="Deployed" <%if (tvBroadcast.getDtt_Status().equals("Deployed")) {
				out.println("selected");
			}%>>Deployed</option>
						<option value="Dropped" <%if (tvBroadcast.getDtt_Status().equals("Dropped")) {
				out.println("selected");
			}%>>Dropped</option>
						<option value="Not Known" <%if (tvBroadcast.getDtt_Status().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
				</select></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Analog Standard:</th>
				<td><select name="analog_standard">
						<option value="NA" <%if (tvBroadcast.getAnalog_Standard().equals("NA")) {
				out.println("selected");
			}%>>NA</option>
						<option value="NTSC" <%if (tvBroadcast.getAnalog_Standard().equals("NTSC")) {
				out.println("selected");
			}%>>NTSC</option>
						<option value="PAL" <%if (tvBroadcast.getAnalog_Standard().equals("PAL")) {
				out.println("selected");
			}%>>PAL</option>
						<option value="SECAM" <%if (tvBroadcast.getAnalog_Standard().equals("SECAM")) {
				out.println("selected");
			}%>>SECAM</option>
						<option value="None" <%if (tvBroadcast.getAnalog_Standard().equals("None")) {
				out.println("selected");
			}%>>None</option>
				</select></td>
			</tr>
			<tr>
				<th>ASO Start Date:</th>
				<td><input name="aso_date_start" type="text" size="9" placeholder="start" value="<%=tvBroadcast.getAso_Date_Start()%>"></td>
			</tr>
			<tr>
				<th>ASO Completion Date:</th>
				<td><input name="aso_date_completion" type="text" size="9" placeholder="Completion" value="<%=tvBroadcast.getAso_Date_Completion()%>"></td>
			</tr>
			<tr>
				<th><font color="red">*</font>ASO Status:</th>
				<td><select name="aso_status">
						<option value="NA" <%if (tvBroadcast.getAso_Status().equals("NA")) {
				out.println("selected");
			}%>>NA</option>
						<option value="Not Known" <%if (tvBroadcast.getAso_Status().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
						<option value="Not Planned" <%if (tvBroadcast.getAso_Status().equals("Not Planned")) {
				out.println("selected");
			}%>>Not Planned</option>
						<option value="Not Started" <%if (tvBroadcast.getAso_Status().equals("Not Started")) {
				out.println("selected");
			}%>>Not Started</option>
						<option value="Ongoing" <%if (tvBroadcast.getAso_Status().equals("Ongoing")) {
				out.println("selected");
			}%>>Ongoing</option>
						<option value="Completed" <%if (tvBroadcast.getAso_Status().equals("Completed")) {
				out.println("selected");
			}%>>Completed</option>
				</select></td>
			</tr>
			<tr>
				<th>DSO Start Date:</th>
				<td><input name="dso_date_start" type="text" size="9" placeholder="start" value="<%=tvBroadcast.getDso_Date_Start()%>">
			</tr>
			<tr>
				<th>DSO Completion Date:</th>
				<td><input name="dso_date_completion" type="text" size="9" placeholder="Completion" value="<%=tvBroadcast.getDso_Date_Completion()%>"></td>
			</tr>
			<tr>
				<th><font color="red">*</font>DSO Status:</th>
				<td><select name="dso_status">
						<option value="NA" <%if (tvBroadcast.getDso_Status().equals("NA")) {
				out.println("selected");
			}%>>NA</option>
						<option value="Not Known" <%if (tvBroadcast.getDso_Status().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
						<option value="Not Planned" <%if (tvBroadcast.getDso_Status().equals("Not Planned")) {
				out.println("selected");
			}%>>Not Planned</option>
						<option value="Not Started" <%if (tvBroadcast.getDso_Status().equals("Not Started")) {
				out.println("selected");
			}%>>Not Started</option>
						<option value="Ongoing" <%if (tvBroadcast.getDso_Status().equals("Ongoing")) {
				out.println("selected");
			}%>>Ongoing</option>
						<option value="Completed" <%if (tvBroadcast.getDso_Status().equals("Completed")) {
				out.println("selected");
			}%>>Completed</option>
				</select></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Next Transition Planned:</th>
				<td><select name="next_transition_planned">
						<option value="NA" <%if (tvBroadcast.getNext_Transition_Planned().equals("NA")) {
				out.println("selected");
			}%>>NA</option>
						<option value="Not Known" <%if (tvBroadcast.getNext_Transition_Planned().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
						<option value="Yes" <%if (tvBroadcast.getNext_Transition_Planned().equals("Yes")) {
				out.println("selected");
			}%>>Yes</option>
						<option value="No" <%if (tvBroadcast.getNext_Transition_Planned().equals("No")) {
				out.println("selected");
			}%>>No</option>
				</select></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Standard (Transitioning into):</th>
				<td><select name="standard_transition_into">
						<option value="NA" <%if (tvBroadcast.getStandard_Transition_Into().equals("NA")) {
				out.println("selected");
			}%>>NA</option>
						<option value="Not Known" <%if (tvBroadcast.getStandard_Transition_Into().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
						<option value="Yes" <%if (tvBroadcast.getStandard_Transition_Into().equals("Yes")) {
				out.println("selected");
			}%>>Yes</option>
						<option value="No" <%if (tvBroadcast.getStandard_Transition_Into().equals("No")) {
				out.println("selected");
			}%>>No</option>
				</select></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Status:</th>
				<td><select name="status">
						<option value="NA" <%if (tvBroadcast.getStatus().equals("NA")) {
				out.println("selected");
			}%>>NA</option>
						<option value="Not Known" <%if (tvBroadcast.getStatus().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
						<option value="Yes" <%if (tvBroadcast.getStatus().equals("Yes")) {
				out.println("selected");
			}%>>Yes</option>
						<option value="No" <%if (tvBroadcast.getStatus().equals("No")) {
				out.println("selected");
			}%>>No</option>
				</select></td>
			</tr>
			<tr>
				<th>Start Date:</th>
				<td><input name="start_date" type="text" size="26" value="<%=tvBroadcast.getStart_Date()%>"></td>
			</tr>
			<tr>
				<th>Notes:</th>
				<td><textarea rows="3" cols="21" name="notes"><%=tvBroadcast.getNotes()%></textarea></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Status Confirmed:</th>
				<td><select name="status_confirmed">
						<option value="Yes" <%if (tvBroadcast.getStatus_Confirmed().equals("Africa")) {
				out.println("selected");
			}%>>Yes</option>
						<option value="No" <%if (tvBroadcast.getStatus_Confirmed().equals("Africa")) {
				out.println("selected");
			}%>>No</option>
				</select></td>
			</tr>
			<!-- 			<tr> -->
			<!-- 				<th>Last date Verified/Updated:</th> -->
			<!-- 				<td><input name="last_date_verified" type="text" size="26" -->
			<%-- 					value="<%=tvBroadcast.getLast_Date_Verified()%>"></td> --%>
			<!-- 			</tr> -->
			<tr>
				<th>Video Format Supported:</th>
				<td><textarea rows="3" cols="21" name="video_format_supported"><%=tvBroadcast.getVideo_Format_Supported()%></textarea></td>
			</tr>
		</table>
		<table style="position: relative;">
			<tr>
				<th>Operators:</th>
				<td><textarea rows="3" cols="21" name="operators"><%=tvBroadcast.getOperators()%></textarea></td>
			</tr>
			<tr>
				<th>MUX Details:</th>
				<td><textarea rows="3" cols="21" name="mux_details"><%=tvBroadcast.getMux_Details()%></textarea></td>
			</tr>
			<tr>
				<th>DTT coverage:</th>
				<td><input name="dtt_coverage" type="text" size="26" placeholder="%of population" value="<%=tvBroadcast.getDtt_Coverage()%>"></td>
			</tr>
			<tr>
				<th><font color="red">*</font>HD Present:</th>
				<td><select name="hd_present">
						<option value="Yes" <%if (tvBroadcast.getHd_Present().equals("Yes")) {
				out.println("selected");
			}%>>Yes</option>
						<option value="No" <%if (tvBroadcast.getHd_Present().equals("No")) {
				out.println("selected");
			}%>>No</option>
						<option value="Not Known" <%if (tvBroadcast.getHd_Present().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
				</select></td>
			</tr>
			<tr>
				<th>Audio Formats:</th>
				<td><input name="audio_formats" type="text" size="26" value="<%=tvBroadcast.getAudio_Formats()%>"></td>
			</tr>
			<tr>
				<th><font color="red">*</font>Interactive Standards:</th>
				<td><select name="interactive_standard">
						<option value="None" <%if (tvBroadcast.getInteractive_Standards().equals("None")) {
				out.println("selected");
			}%>>None</option>
						<option value="Optional" <%if (tvBroadcast.getInteractive_Standards().equals("Optional")) {
				out.println("selected");
			}%>>Optional</option>
						<option value="Not Known" <%if (tvBroadcast.getInteractive_Standards().equals("Not Known")) {
				out.println("selected");
			}%>>Not Known</option>
						<option value="MHEG5" <%if (tvBroadcast.getInteractive_Standards().equals("MHEG5")) {
				out.println("selected");
			}%>>MHEG5</option>
						<option value="MHP" <%if (tvBroadcast.getInteractive_Standards().equals("MHP")) {
				out.println("selected");
			}%>>MHP</option>
						<option value="BML" <%if (tvBroadcast.getInteractive_Standards().equals("BML")) {
				out.println("selected");
			}%>>BML</option>
						<option value="GINGA" <%if (tvBroadcast.getInteractive_Standards().equals("GINGA")) {
				out.println("selected");
			}%>>GINGA</option>
						<option value="HBB" <%if (tvBroadcast.getInteractive_Standards().equals("HBB")) {
				out.println("selected");
			}%>>HBB</option>
				</select></td>
			</tr>
			<tr>
				<th>Frequency Band:</th>
				<td><input name="frequency_bands" type="text" size="26" value="<%=tvBroadcast.getFrequency_Bands()%>"></td>
			</tr>
			<tr>
				<th>Channel Bandwidth:</th>
				<td><input name="channel_bandwidth" type="text" size="26" value="<%=tvBroadcast.getChannel_Bandwidth()%>"></td>
			</tr>
			<tr>
				<th>Carrier type:</th>
				<td><input name="carrier_type" type="text" size="26" value="<%=tvBroadcast.getCarrier_Type()%>"></td>
			</tr>
			<tr>
				<th>Modulation:</th>
				<td><input name="modulation" type="text" size="26" value="<%=tvBroadcast.getModulation()%>"></td>
			</tr>
			<tr>
				<th>Broadcast authority:</th>
				<td><textarea rows="3" cols="21" name="broadcast_authority"><%=tvBroadcast.getBroadcast_Authority()%></textarea></td>
			</tr>
			<tr>
				<th>ITU Region:</th>
				<td><input name="itu_region" type="text" size="26" value="<%=tvBroadcast.getItu_Region()%>"></td>
			</tr>
			<tr>
				<th>Broadcasters:</th>
				<td><textarea rows="3" cols="21" name="broadcasters"><%=tvBroadcast.getBroadcasters()%></textarea></td>
			</tr>
			<tr>
				<th>Other Sources of Reference:</th>
				<td><textarea rows="3" cols="21" name="source_of_reference"><%=tvBroadcast.getSource_Of_Reference()%></textarea></td>
			</tr>
		</table>
		<div style="clear: both;"></div>
		<input type="submit" name="Update" value="update">&nbsp;&nbsp;&nbsp;<input type="button" name="Cancel" value="Cancel" onclick="self.close()">
	</form>
</body>
</html>